/**
 * Created by wzh on 2016/6/30.
 */
'use strict'
swan_pc
    .directive('repeatDatastruct',function(){
        return {
            restrict: 'AE',
            replace:true,
            templateUrl:"scripts/services/directives/wzh/repeat/repeatDatastruct.html",
            scope: {
                infoStruct:"=",
                infoTraversal:"=",
                blockname:"@",
                preName:"@",
                dirtySet:"&",
                dirtyGet:"&",
                specialNeed:"@"
            },
            controller:['$scope', function($scope){
                $scope.delete=function(info,index){
                    $scope.infoTraversal.splice(index,1);
                }
            }]
        }
    })